if(SIMULATOR STREQUAL "verilator")
	include(verilator)
	# if has dut/UT_nutshell_axi4ram, skip build
	mcv_gen_verilator_dut("UT_nutshell_axi4ram" "AXI4RAM" "AXI4RAM"
												"${PROJECT_SOURCE_DIR}/mcv-ut/build/NutShell/AXI4RAM.v")

	include_directories(${PROJECT_SOURCE_DIR}/dut/UT_nutshell_axi4ram_trace)
	if(TRACE STREQUAL "ON")
		add_library(UT_nutshell_axi4ram_trace
								${PROJECT_SOURCE_DIR}/dut/UT_nutshell_axi4ram_trace/UTAXI4RAM.cpp)
		add_executable(tb_nutshell_axi4ram_trace tb_nutshell_axi4ram.cpp)
		target_link_libraries(
			tb_nutshell_axi4ram_trace ovip xspcomm UT_nutshell_axi4ram_trace
			${PROJECT_SOURCE_DIR}/dut/UT_nutshell_axi4ram_trace/libDPIAXI4RAM.so)

	else()

		add_library(UT_nutshell_axi4ram ${PROJECT_SOURCE_DIR}/dut/UT_nutshell_axi4ram/UTAXI4RAM.cpp)
		add_executable(tb_nutshell_axi4ram tb_nutshell_axi4ram.cpp)
		target_link_libraries(tb_nutshell_axi4ram ovip xspcomm UT_nutshell_axi4ram
													${PROJECT_SOURCE_DIR}/dut/UT_nutshell_axi4ram/libDPIAXI4RAM.so)

	endif()

endif()

if(SIMULATOR STREQUAL "vcs")

	include(vcs)
	mcv_gen_vcs_dut("UT_nutshell_axi4ram" "AXI4RAM" "AXI4RAM"
										  "${PROJECT_SOURCE_DIR}/mcv-ut/build/NutShell/AXI4RAM.v" "")


	if(TRACE STREQUAL "ON")
		include_directories(${PROJECT_SOURCE_DIR}/dut/UT_nutshell_axi4ram_trace)
		add_library(
			UT_nutshell_axi4ram_trace
			${PROJECT_SOURCE_DIR}/dut/UT_nutshell_axi4ram_trace/UTAXI4RAM.cpp)
		add_executable(tb_nutshell_axi4ram_trace tb_nutshell_axi4ram.cpp)
		target_link_libraries(
			tb_nutshell_axi4ram_trace ovip xspcomm vcs_tls vcs_save_restore_new
			UT_nutshell_axi4ram_trace
			${PROJECT_SOURCE_DIR}/dut/UT_nutshell_axi4ram_trace/libDPIAXI4RAM.so)

	else()
		include_directories(${PROJECT_SOURCE_DIR}/dut/UT_nutshell_axi4ram)
		add_library(UT_nutshell_axi4ram
								${PROJECT_SOURCE_DIR}/dut/UT_nutshell_axi4ram/UTAXI4RAM.cpp)
		add_executable(tb_nutshell_axi4ram tb_nutshell_axi4ram.cpp)
		target_link_libraries(
			tb_nutshell_axi4ram ovip xspcomm vcs_tls vcs_save_restore_new UT_nutshell_axi4ram
			${PROJECT_SOURCE_DIR}/dut/UT_nutshell_axi4ram/libDPIAXI4RAM.so)

	endif()

endif()
